<%-- 
    Document   : register
    Created on : 2010-02-03, 12:21:52
    Author     : Admin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="e" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="nowaBean" scope="application" class="beans.nowaBean" />
<f:view>


    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
             <link rel="stylesheet" type="text/css" href="styl.css"/>
            <title>Rejestracja</title>
        </head>
        <body>
            <h:form>
                <h2>Rejestracja nowego uzytkownika</h2>
                  <e:out value="${sessionScope['login']}"/>
                <table>
                    <tr><td> Login:   </td><td>  <h:inputText id="reg_log" value="#{nowaBean.login}"/></td></tr>
          <tr><td> Haslo: </td><td><h:inputSecret id="reg_pass" value="#{nowaBean.pass}"/></td></tr>
          <tr><td> Email: </td><td><h:inputText value="#{nowaBean.mail}"/></td></tr>
                </table>
                  <h:commandButton value="Go!" action="#{nowaBean.reg}"/>
            </h:form>

        </body>
    </html>
</f:view>
